﻿using System;
using System.ComponentModel.DataAnnotations;

namespace YuFeng.Models.User
{
    public class User
    {
        public User()
        {
            Id = Guid.NewGuid().ToString("n");
        }
        /// <summary>
        /// 用户系统编号
        /// </summary>
        [Key]
        [Required]
        [StringLength(128)]
        public string Id { get; set; }

        [StringLength(128)]
        public string Name { get; set; }

        [Required]
        [MaxLength(256)]
        public string Password { get; set; }
    }
}
